﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.DialogUI {
    import flash.utils.*;

    public class CustomDialog extends GenericDialog {

        protected var m_finalized:Boolean;
        protected var m_buttons:Array;

        public function CustomDialog(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:String="", _arg5:int=0, _arg6:Boolean=true){
            this.m_finalized = false;
            this.m_buttons = new Array();
            super(_arg1, _arg2, 0, null, _arg3, _arg4, _arg6, _arg5, "", null, "");
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            var _local2:CustomDialogView = new CustomDialogView(_arg1, m_message, m_dialogTitle, m_icon, m_iconPos, this.m_buttons);
            return (_local2);
        }
        override protected function init():void{
        }
        override protected function loadAssets():void{
        }
        public function buildCustomDialog():void{
            if (!this.m_finalized){
                super.init();
                super.loadAssets();
                this.m_finalized = true;
            };
        }
        public function addButton(_arg1:String, _arg2:Function):void{
            this.m_buttons.push({
                label:_arg1,
                callback:_arg2
            });
        }

    }
}//package Display.DialogUI 
